package com.ambimmort.shj.action.generalfile;

import com.ambimmort.shj.service.generalfile.GetIpBankFromDB2FileService;
import com.ambimmort.shj.service.generalfile.GetUrlBlackFromDB2FileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;

/**
 * Created by 师梁 on 2015/7/30.
 */
@RequestMapping("/action/common/produce_black_url_list.do")
public class GetUrlBlackFromDB2File {
    @Autowired
    private GetUrlBlackFromDB2FileService getUrlBlackFromDB2FileService;

    @RequestMapping("/action/common/produce_black_url_list.do")
    @ResponseBody
    public  String get(
            HttpServletRequest request, @RequestParam("dstPath") String dstPath,  @RequestParam("MessageType")String MessageType, @RequestParam("policy_instance")String policy_instance

    ){
        return  getUrlBlackFromDB2FileService.get(MessageType, policy_instance, dstPath);
    }
}
